package cn.leedsoft.luma.controller.interceptor;

import cn.leedsoft.luma.common.utils.RequestUtil;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by leeds on 2016/6/28 16:48.
 */
public class CoreInterceptor extends HandlerInterceptorAdapter{
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        RequestUtil.init(request);
        return super.preHandle(request, response, handler);
    }
}
